home *** CD-ROM | disk | FTP | other *** search
/ Risc World 3 / Risc World 3.iso / SOFTWARE / ISSUE6 / PD / PDF / pdf / c++ / PdfDocEncoding < prev    next >
Text File  |  2003-02-14  |  5KB  |  299 lines

  1. //--------------------------------------------------------------------------
  2. //
  3. //   Copyright (c) 2002, Colin Granville
  4. //
  5. //   All rights reserved.
  6. //
  7. //   Redistribution and use in source and binary forms, with or
  8. //   without modification, are permitted provided that the following 
  9. //   conditions are met:
  10. //
  11. //      * Redistributions of source code must retain the above copyright 
  12. //        notice, this list of conditions and the following disclaimer.
  13. //
  14. //      * Redistributions in binary form must reproduce the above 
  15. //        copyright notice, this list of conditions and the following 
  16. //        disclaimer in the documentation and/or other materials 
  17. //        provided with the distribution.
  18. //
  19. //      * The name Colin Granville may not be used to endorse or promote 
  20. //        products derived from this software without specific prior 
  21. //        written permission.
  22. //
  23. //   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
  24. //   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
  25. //   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
  26. //   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
  27. //   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
  28. //   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
  29. //   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
  30. //   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
  31. //   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
  32. //   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
  33. //   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
  34. //   OF THE POSSIBILITY OF SUCH DAMAGE.
  35. //
  36. //--------------------------------------------------------------------------
  37.  
  38. #include "PdfDocEncoding.h"
  39.  
  40.  
  41. char* pdfDocEncoding[256] = {
  42.   0,
  43.   0,
  44.   0,
  45.   0,
  46.   0,
  47.   0,
  48.   0,
  49.   0,
  50.   0,
  51.   0,
  52.   0,
  53.   0,
  54.   0,
  55.   0,
  56.   0,
  57.   0,
  58.   0,
  59.   0,
  60.   0,
  61.   0,
  62.   0,
  63.   0,
  64.   0,
  65.   0,
  66.   "breve",
  67.   "caron",
  68.   "circumflex",
  69.   "dotaccent",
  70.   "hungarumlaut",
  71.   "ogonek",
  72.   "ring",
  73.   "tilde",
  74.   "space",
  75.   "exclam",
  76.   "quotedbl",
  77.   "numbersign",
  78.   "dollar",
  79.   "percent",
  80.   "ampersand",
  81.   "quotesingle",
  82.   "parenleft",
  83.   "parenright",
  84.   "asterisk",
  85.   "plus",
  86.   "comma",
  87.   "hyphen",
  88.   "period",
  89.   "slash",
  90.   "zero",
  91.   "one",
  92.   "two",
  93.   "three",
  94.   "four",
  95.   "five",
  96.   "six",
  97.   "seven",
  98.   "eight",
  99.   "nine",
  100.   "colon",
  101.   "semicolon",
  102.   "less",
  103.   "equal",
  104.   "greater",
  105.   "question",
  106.   "at",
  107.   "A",
  108.   "B",
  109.   "C",
  110.   "D",
  111.   "E",
  112.   "F",
  113.   "G",
  114.   "H",
  115.   "I",
  116.   "J",
  117.   "K",
  118.   "L",
  119.   "M",
  120.   "N",
  121.   "O",
  122.   "P",
  123.   "Q",
  124.   "R",
  125.   "S",
  126.   "T",
  127.   "U",
  128.   "V",
  129.   "W",
  130.   "X",
  131.   "Y",
  132.   "Z",
  133.   "bracketleft",
  134.   "backslash",
  135.   "bracketright",
  136.   "asciicircum",
  137.   "underscore",
  138.   "grave",
  139.   "a",
  140.   "b",
  141.   "c",
  142.   "d",
  143.   "e",
  144.   "f",
  145.   "g",
  146.   "h",
  147.   "i",
  148.   "j",
  149.   "k",
  150.   "l",
  151.   "m",
  152.   "n",
  153.   "o",
  154.   "p",
  155.   "q",
  156.   "r",
  157.   "s",
  158.   "t",
  159.   "u",
  160.   "v",
  161.   "w",
  162.   "x",
  163.   "y",
  164.   "z",
  165.   "braceleft",
  166.   "bar",
  167.   "braceright",
  168.   "asciitilde",
  169.   0,
  170.   "bullet",
  171.   "dagger",
  172.   "daggerdbl",
  173.   "ellipsis",
  174.   "emdash",
  175.   "endash",
  176.   "florin",
  177.   "fraction",
  178.   "guilsinglleft",
  179.   "guilsinglright",
  180.   "minus",
  181.   "perthousand",
  182.   "quotedblbase",
  183.   "quotedblleft",
  184.   "quotedblright",
  185.   "quoteleft",
  186.   "quoteright",
  187.   "quotesinglbase",
  188.   "trademark",
  189.   "fi",
  190.   "fl",
  191.   "Lslash",
  192.   "OE",
  193.   "Scaron",
  194.   "Ydieresis",
  195.   "Zcaron",
  196.   "dotlessi",
  197.   "lslash",
  198.   "oe",
  199.   "scaron",
  200.   "zcaron",
  201.   0,
  202.   "Euro",
  203.   "exclamdown",
  204.   "cent",
  205.   "sterling",
  206.   "currency",
  207.   "yen",
  208.   "brokenbar",
  209.   "section",
  210.   "dieresis",
  211.   "copyright",
  212.   "ordfeminine",
  213.   "guillemotleft",
  214.   "logicalnot",
  215.   0,
  216.   "registered",
  217.   "macron",
  218.   "degree",
  219.   "plusminus",
  220.   "twosuperior",
  221.   "threesuperior",
  222.   "acute",
  223.   "mu",
  224.   "paragraph",
  225.   "periodcentered",
  226.   "cedilla",
  227.   "onesuperior",
  228.   "ordmasculine",
  229.   "guillemotright",
  230.   "onequarter",
  231.   "onehalf",
  232.   "threequarters",
  233.   "questiondown",
  234.   "Agrave",
  235.   "Aacute",
  236.   "Acircumflex",
  237.   "Atilde",
  238.   "Adieresis",
  239.   "Aring",
  240.   "AE",
  241.   "Ccedilla",
  242.   "Egrave",
  243.   "Eacute",
  244.   "Ecircumflex",
  245.   "Edieresis",
  246.   "Igrave",
  247.   "Iacute",
  248.   "Icircumflex",
  249.   "Idieresis",
  250.   "Eth",
  251.   "Ntilde",
  252.   "Ograve",
  253.   "Oacute",
  254.   "Ocircumflex",
  255.   "Otilde",
  256.   "Odieresis",
  257.   "multiply",
  258.   "Oslash",
  259.   "Ugrave",
  260.   "Uacute",
  261.   "Ucircumflex",
  262.   "Udieresis",
  263.   "Yacute",
  264.   "Thorn",
  265.   "germandbls",
  266.   "agrave",
  267.   "aacute",
  268.   "acircumflex",
  269.   "atilde",
  270.   "adieresis",
  271.   "aring",
  272.   "ae",
  273.   "ccedilla",
  274.   "egrave",
  275.   "eacute",
  276.   "ecircumflex",
  277.   "edieresis",
  278.   "igrave",
  279.   "iacute",
  280.   "icircumflex",
  281.   "idieresis",
  282.   "eth",
  283.   "ntilde",
  284.   "ograve",
  285.   "oacute",
  286.   "ocircumflex",
  287.   "otilde",
  288.   "odieresis",
  289.   "divide",
  290.   "oslash",
  291.   "ugrave",
  292.   "uacute",
  293.   "ucircumflex",
  294.   "udieresis",
  295.   "yacute",
  296.   "thorn",
  297.   "ydieresis",
  298. };
  299.